import 'package:fish_redux/fish_redux.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';

import 'entity/classListEntity.dart';
import 'entity/news_entity.dart';

class HomePageState implements Cloneable<HomePageState> {
  List<NewsEntity> items;
  List<ClassList> classList;
  int page = 1;
  String classname ="";
  ClassList defaultClass;

  ///刷新控制器
  EasyRefreshController easyRefreshController;
  @override
  HomePageState clone() {
    return HomePageState()..items = items
      ..page = page
      ..classname=classname
      ..easyRefreshController = easyRefreshController
    ..classList = classList
    ..defaultClass = defaultClass;

  }
}

HomePageState initState(Map<String, dynamic> args) {
  return HomePageState()..items = []
    ..page = 1
    ..classname="请选择"
    ..easyRefreshController = EasyRefreshController()
  ..classList = [];
}
